#include "MenuButtonController.h"

MenuButtonController::MenuButtonController(SDL_Keycode keyCode) {
	this->keyCode = keyCode;
}

bool MenuButtonController::loadView() { return 0; }
void MenuButtonController::updateView() {}
void MenuButtonController::execute() {}
Controller* MenuButtonController::handleEvent(SDL_Event* event) {
	if (this->keyCode == event->key.keysym.sym) {
		// Creo el nuevo control asociado a la opcion de teclado
		return new GameController(this->getView());
	}
	else
		return NULL;
}

MenuButtonController::~MenuButtonController() {}
